export default {
  state: {
    show_address_view:false,//是否打开地址管理界面
    show_address_list:true, //默认显示地址列表
    show_address_add:false,
    show_address_edit:false,
    address_change_num:0,
  },
  mutations: {
    // 打开地址管理界面
    open_address_view(state,tf){
      state.show_address_view = tf;
    },

    open_address_add(state,tf){
      state.show_address_add = tf;
    },

    open_address_edit(state,tf){
      state.show_address_edit = tf;
    },

    // 添加地址成功后调用  改变地址状态  自动刷新地址列表
    address_change_succ(state){
      state.address_change_num++
    }
  }
}
